home *** CD-ROM | disk | FTP | other *** search
- on hTestPrintObjs
- set tmpPrinter to birth(script "class EntryPrinter")
- if objectp(tmpPrinter) = 0 then
- put ">hTestPrintObjs temp object = 0"
- end if
- put "tmpPrinter=" & tmpPrinter
- end
-
- on hPrintEntry
- global gPrintSearchtext, gComputerTypeK, gModeState, gInputField, gdescfield, gCurrEntryAttrib
- set vSource to #paramount
- if gModeState = #Resources then
- hReportStatus("Sorry, Resources cannot be printed.")
- hearit(gNopeSND)
- exit
- end if
- if gModeState = #TOPICS then
- if not (line 1 of field gdescfield starts "•") then
- hReportStatus("Sorry, Topics cannot be printed.")
- hearit(gNopeSND)
- exit
- else
- set vSource to #user
- end if
- end if
- set tmpPrinter to birth(script "class EntryPrinter", vSource)
- if objectp(tmpPrinter) = 0 then
- if gComputerTypeK = #mac then
- alert("Sorry, can't open the printing feature. Check that you have selected a printer in the Chooser.")
- else
- alert("Sorry, can't open the printing feature. Check that you have selected a printer in the Print Manager.")
- end if
- return
- end if
- set vEntry to hGetText(getAt(gCurrEntryAttrib, 9), getAt(gCurrEntryAttrib, 10))
- set oldDelim to the itemDelimiter
- set the itemDelimiter to "@"
- set vStyles to item 1 of vEntry
- set vHeading to item 2 of vEntry
- delete char 1 of vHeading
- delete item 1 of vEntry
- delete item 1 of vEntry
- delete char 1 of vEntry
- mRender(tmpPrinter, vHeading, vStyles, vEntry)
- set the itemDelimiter to oldDelim
- end
-